import React, {Component} from 'react';
import { Table, Icon, Divider } from 'antd';

const { Column, ColumnGroup } = Table;
const data = [{
    key: '1',
    name: 'John1',
    sex: '男sdasdasd',
    age: 32,
    masege: '操作工',
    number: 15982086412,
    number1: 15982086412,
    number2: 15982086412,
    number3: 15982086412,
    number4: 15982086412,
    address: 'New York No. 1 Lake Park',
}, {
    key: '2',
    name: 'Jim',
    sex: '男',
    age: 42,
    masege: '操作工',
    number: 15982086412,
    number1: 15982086412,
    number2: 15982086412,
    number3: 15982086412,
    number4: 15982086412,
    address: 'London No. 1 Lake Park',
}, {
    key: '3',
    name: 'Joe',
    sex: '男',
    age: 32,
    masege: '操作工',
    number: 15982086412,
    number1: 15982086412,
    number2: 15982086412,
    number3: 15982086412,
    number4: 15982086412,
    address: 'Sidney No. 1 Lake Park',
}];

class WorkerInformation extends Component {
    render() {
        return (
            <Table dataSource={data}>
                <Column
                    title="姓名"
                    dataIndex="name"
                    key="name"
                />
                <Column
                    title="性别"
                    dataIndex="sex"
                    key="sex"
                />
                <Column
                    title="年龄"
                    dataIndex="age"
                    key="age"
                />
                <Column
                    title="工种"
                    dataIndex="masege"
                    key="masege"
                />
                <Column
                    title="电话号码"
                    dataIndex="number"
                    key="number"
                />
                <Column
                    title="身份证"
                    dataIndex="number"
                    key="number1"
                />
                <Column
                    title="照片"
                    dataIndex="number"
                    key="number2"
                />
                <Column
                    title="说明"
                    dataIndex="number"
                    key="number3"
                />
                <Column
                    title="推荐人"
                    dataIndex="number"
                    key="number4"
                />
               {/* <Column
                    title="Action"
                    key="action"
                    render={(text, record) => (
                        <span>
          <a href="#">Action 一 {record.name}</a>
          <Divider type="vertical" />
          <a href="#">Delete</a>
          <Divider type="vertical" />
          <a href="#" className="ant-dropdown-link">
            More actions <Icon type="down" />
          </a>
        </span>
                    )}
                />*/}
            </Table>
        );
    }
}

export default WorkerInformation;
